#ifndef __OTA_H__
#define __OTA_H__

#include "stm32f10x.h"

int ota_flash_init(uint32_t firmware_size);
int ota_flash_write(uint32_t offset, const uint8_t* data, uint32_t len);
uint32_t ota_flash_calculate_crc32(uint32_t size);
int mark_boot_to_inactive(void);

#endif

